<?php

	defined('_JEXEC') or die('Restricted access');
?>

<form action="" method="post" name="adminForm" id="adminForm" >
<div style="width:100%;float:left;">
<fieldset class="adminform">
    
    <table class="admintable" width="100%">
        <tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="name">
                    <?php echo JText::_( 'Название категории' ); ?>
                </label>
            </td>
			<td valign="top">
                <input class="text_area" type="text" name="name"  size="50" maxlength="255" value="<?php echo isset($this->item->name)?$this->item->name:'';?>" />
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="name">
                    <?php echo JText::_( 'Заголовок категории' ); ?>
                </label>
            </td>
			<td valign="top">
                <input class="text_area" type="text" name="title"  size="50"  value="<?php echo isset($this->item->title)?$this->item->title:'';?>" />
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="name">
                    <?php echo JText::_( 'Тег title категории' ); ?>
                </label>
            </td>
			<td valign="top">
                <input class="text_area" type="text" name="metatitle"  size="50" maxlength="255" value="<?php echo isset($this->item->metatitle)?$this->item->metatitle:'';?>" />
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="name">
                    <?php echo JText::_( 'Описание категории' ); ?>
                </label>
            </td>
			<td valign="top">
                <?php echo $this->editor->display('description', $this->item->description, "500" , "300", '30', '10');?>
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="name">
                    <?php echo JText::_( 'Опубликовано' ); ?>
                </label>
            </td>
			<td valign="top">
				<select name="published" size="1">
					<option value="1" <?php if(isset($this->item->published) && $this->item->published ==1) echo 'SELECTED';?> >Да</option>
					<option value="0" <?php if(isset($this->item->published) && $this->item->published ==0) echo 'SELECTED';?>>Нет</option>
				</select>
                
            </td>
        </tr>
		<?php /*
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="metakey">
                    <?php echo JText::_( 'Псевдоним (ссылка)' ); ?>
                </label>
            </td>
			<td valign="top">
                <input name="alias" class="text_area" value="<?php echo isset($this->item->alias)?$this->item->alias:'';?>" />
            </td>
        </tr>
		*/?>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="metadescr">
                    <?php echo JText::_( 'Мета-данные: Описание' ); ?>
                </label>
            </td>
			<td valign="top">
                <textarea name="metadesc" cols="30" rows="5" class="text_area"><?php echo isset($this->item->metadesc)?$this->item->metadesc:'';?></textarea>
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="metakey">
                    <?php echo JText::_( 'Мета-данные: Ключевые слова' ); ?>
                </label>
            </td>
			<td valign="top">
                <textarea name="metakey" cols="30" rows="5" class="text_area"><?php echo isset($this->item->metakey)?$this->item->metakey:'';?></textarea>
            </td>
        </tr>
		<tr >
            <td  align="left" class="key" style="text-align:left;">
                <label for="metakey">
                    <?php echo JText::_( 'Мета-данные: Роботы' ); ?>
                </label>
            </td>
			<td valign="top">
                <input name="metadata" value="<?php echo isset($this->item->metadata)?$this->item->metadata:'';?>" />
            </td>
        </tr>
    </table>
</fieldset>

</div>
<input type="hidden" name="option" value="com_shop" />
<input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
<input type="hidden" name="task" value="" />


</form>
